home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1997 October: Mac OS SDK / Dev.CD Oct 97 SDK1.toast / Development Kits (Disc 1) / Interfaces&Libraries / Universal / Interfaces / AIncludes / ENET.a < prev    next >
Encoding:
Text File  |  1997-08-12  |  3.5 KB  |  131 lines  |  [TEXT/MPS ]

  1. ;
  2. ;    File:        ENET.a
  3. ;
  4. ;    Contains:    Ethernet Interfaces.
  5. ;
  6. ;    Version:    Technology:    System 7.5
  7. ;                Release:    Universal Interfaces 3.0.1
  8. ;
  9. ;    Copyright:    © 1990-1997 by Apple Computer, Inc., all rights reserved
  10. ;
  11. ;    Bugs?:        Please include the the file and version information (from above) with
  12. ;                the problem description.  Developers belonging to one of the Apple
  13. ;                developer programs can submit bug reports to:
  14. ;
  15. ;                    devsupport@apple.com
  16. ;
  17. ;
  18.     IF &TYPE('__ENET__') = 'UNDEFINED' THEN
  19. __ENET__ SET 1
  20.  
  21.     IF &TYPE('__TYPES__') = 'UNDEFINED' THEN
  22.     include 'Types.a'
  23.     ENDIF
  24.     IF &TYPE('__OSUTILS__') = 'UNDEFINED' THEN
  25.     include 'OSUtils.a'
  26.     ENDIF
  27.  
  28.  
  29. ENetSetGeneral                    EQU        253                    ;Set "general" mode
  30. ENetGetInfo                        EQU        252                    ;Get info
  31. ENetRdCancel                    EQU        251                    ;Cancel read
  32. ENetRead                        EQU        250                    ;Read
  33. ENetWrite                        EQU        249                    ;Write
  34. ENetDetachPH                    EQU        248                    ;Detach protocol handler
  35. ENetAttachPH                    EQU        247                    ;Attach protocol handler
  36. ENetAddMulti                    EQU        246                    ;Add a multicast address
  37. ENetDelMulti                    EQU        245                    ;Delete a multicast address
  38.  
  39. EAddrRType                        EQU        'eadr'                ;Alternate address resource type
  40.  
  41.  
  42. ; typedef EParamBlock *                    EParamBlkPtr
  43.  
  44. EParamBlock                RECORD 0
  45. qLink                     ds.l    1                ; offset: $0 (0)        ; General EParams
  46. qType                     ds.w    1                ; offset: $4 (4)        ; queue type
  47. ioTrap                     ds.w    1                ; offset: $6 (6)        ; routine trap
  48. ioCmdAddr                 ds.l    1                ; offset: $8 (8)        ; routine address
  49. ioCompletion             ds.l    1                ; offset: $C (12)        ; completion routine
  50. ioResult                 ds.w    1                ; offset: $10 (16)        ; result code
  51. ioNamePtr                 ds.l    1                ; offset: $12 (18)        ; ->filename
  52. ioVRefNum                 ds.w    1                ; offset: $16 (22)        ; volume reference or drive number
  53. ioRefNum                 ds.w    1                ; offset: $18 (24)        ; driver reference number
  54. csCode                     ds.w    1                ; offset: $1A (26)        ; Call command code
  55. eProtType                 ds.w    1                ; offset: $1C (28)        ; Ethernet protocol type
  56. ePointer                 ds.l    1                ; offset: $1E (30)        ; No support for PowerPC code
  57. eBuffSize                 ds.w    1                ; offset: $22 (34)        ; buffer size
  58. eDataSize                 ds.w    1                ; offset: $24 (36)        ; number of bytes read
  59.                          ORG 28
  60. eMultiAddr                 ds.b    6                ; offset: $1C (28)        ; Multicast Address
  61.                          ORG 38
  62. sizeof                     EQU *                    ; size:   $26 (38)
  63.                         ENDR
  64. ;
  65. ; pascal OSErr EWrite(EParamBlkPtr thePBptr, Boolean async)
  66. ;
  67.     IF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  68.         IMPORT_CFM_FUNCTION EWrite
  69.     ENDIF
  70.  
  71. ;
  72. ; pascal OSErr EAttachPH(EParamBlkPtr thePBptr, Boolean async)
  73. ;
  74.     IF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  75.         IMPORT_CFM_FUNCTION EAttachPH
  76.     ENDIF
  77.  
  78. ;
  79. ; pascal OSErr EDetachPH(EParamBlkPtr thePBptr, Boolean async)
  80. ;
  81.     IF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  82.         IMPORT_CFM_FUNCTION EDetachPH
  83.     ENDIF
  84.  
  85. ;
  86. ; pascal OSErr ERead(EParamBlkPtr thePBptr, Boolean async)
  87. ;
  88.     IF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  89.         IMPORT_CFM_FUNCTION ERead
  90.     ENDIF
  91.  
  92. ;
  93. ; pascal OSErr ERdCancel(EParamBlkPtr thePBptr, Boolean async)
  94. ;
  95.     IF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  96.         IMPORT_CFM_FUNCTION ERdCancel
  97.     ENDIF
  98.  
  99. ;
  100. ; pascal OSErr EGetInfo(EParamBlkPtr thePBptr, Boolean async)
  101. ;
  102.     IF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  103.         IMPORT_CFM_FUNCTION EGetInfo
  104.     ENDIF
  105.  
  106. ;
  107. ; pascal OSErr ESetGeneral(EParamBlkPtr thePBptr, Boolean async)
  108. ;
  109.     IF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  110.         IMPORT_CFM_FUNCTION ESetGeneral
  111.     ENDIF
  112.  
  113. ;
  114. ; pascal OSErr EAddMulti(EParamBlkPtr thePBptr, Boolean async)
  115. ;
  116.     IF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  117.         IMPORT_CFM_FUNCTION EAddMulti
  118.     ENDIF
  119.  
  120. ;
  121. ; pascal OSErr EDelMulti(EParamBlkPtr thePBptr, Boolean async)
  122. ;
  123.     IF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  124.         IMPORT_CFM_FUNCTION EDelMulti
  125.     ENDIF
  126.  
  127.  
  128.  
  129.     ENDIF ; __ENET__ 
  130.  
  131.